import request from '@/utils/request'
import { encrypt } from '@/utils/my_encrypt'


// 登录
export function login(data) {
  // 采用crypt的加密算法对密码进行加密
  // data.password = encrypt(data.password)
  return request({
    url: '/login',
    method: 'post',
    data
  })
}



// 退出
export function logout(token) {
  return request({
    url: '/logout',
    method: 'get',
    params: { token }
  })
}
